﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.PB;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.PB
{
    public partial interface IPB_ScheduleBusiness
    {
        Task<PageResult<PB_Schedule>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<PageResult<PB_ScheduleDTO>> GetDataListDTO(PageInput<PB_ScheduleConditionDTO> input);
        Task<PageResult<PB_ScheduleDTO>> GetDataListToexamineAsync(PageInput<PB_ScheduleConditionDTO> input);
        Task<PB_Schedule> GetTheDataAsync(string id);
        Task AddDataAsync(PB_Schedule data);
        Task UpdateDataAsync(PB_Schedule data);
        Task DeleteDataAsync(List<string> ids);
        Task<PB_ScheduleList> GetDataListInfo(string ParentId);
        /// <summary>
        ///排班审核
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task UpdateDataStateAsync(string Id);

        /// <summary>
        /// 添加生产 排班 及排班明细
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task AddData(Entity.DTO.PB_ScheduleListDTO data);
        Task UpdateData(Entity.DTO.PB_ScheduleListDTO data);
        Task ToExamineDataAsync(string id, int stateType);

    }
}